from rest_framework import serializers
from goods.models import SKUImage,SKU

#1,sku images
class SKUImagesSerializer(serializers.ModelSerializer):
    class Meta:
        model = SKUImage
        fields = "__all__"

#2, sku info
class SKUInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = SKU
        fields = ["id","name"]